package com.sy.pojo;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 课程章节表
 * chapters
 */
@Data
@Schema(description = "章节实体类")
public class Chapters implements Serializable {
    /**
     * 章节ID
     */
    @Schema(description = "章节ID")
    private Integer id;

    /**
     * 课程ID
     */
    @Schema(description = "课程ID")
    private Integer courseid;

    /**
     * 章节名称
     */
    @Schema(description = "课程名称")
    private String name;

    /**
     * 章节总时长（秒）
     */
    @Schema(description = "章节时长")
    private String chapterDuration;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    @TableField(exist = false)
    @Schema(description = "小节集合信息")
    //临时属性
    private List<Sections> sections;

}